import type { AxiosRequestConfig } from 'axios'

export interface GJRequestInterceptors {
  requestInterceptor?: (config: AxiosRequestConfig) => AxiosRequestConfig
  requestInterceptorCatch?: (error: any) => any
  // responseInterceptor?: (config: AxiosResponse) => AxiosResponse
  responseInterceptor?: (config: any) => any
  responseInterceptorCatch?: (error: any) => any
}

export interface GJRequestConfig extends AxiosRequestConfig {
  interceptors?: GJRequestInterceptors
}
